package InterfacesAndModules;

import FlightInfo.FlightStatus;
import FlightInfo.Flights;
import NewAirportInfo.AirportBasicInfo;
import NewAirportInfo.AirportRunwayInfo;
import org.jetbrains.annotations.NotNull;

import java.util.ArrayList;

public class DataOperationInterface {
    public Flights GetFlightData(@NotNull ArrayList<Flights> DataPassIn, int Order) {
        return DataPassIn.get(Order);
    }

    public void FlightsReWriteData(@NotNull ArrayList<Flights> DataPassIn, int Order, Flights NeedInsData) {
        DataPassIn.set(Order, NeedInsData);
    }

    public FlightStatus GetFlightStatusData(@NotNull ArrayList<FlightStatus> DataPassIn, int Order) {
        return DataPassIn.get(Order);
    }

    public void FlightStatusReWriteData(@NotNull ArrayList<FlightStatus> DataPassIn, int Order, FlightStatus NeedInsData) {
        DataPassIn.set(Order, NeedInsData);
    }

    public AirportBasicInfo GetAirportBasicInfo(@NotNull ArrayList<AirportBasicInfo> DataPassIn, int Order) {
        return DataPassIn.get(Order);
    }

    public void AirportBasicInfoReWriteData(@NotNull ArrayList<AirportBasicInfo> DataPassIn, int order, AirportBasicInfo NeedInsData) {
        DataPassIn.set(order, NeedInsData);
    }
    public AirportRunwayInfo GetAirportRunwayInfo(@NotNull ArrayList<AirportRunwayInfo> DataPassIn, int Order) {
        return DataPassIn.get(Order);
    }
    public void AirportRunwayInfoReWriteData(@org.jetbrains.annotations.NotNull ArrayList<AirportRunwayInfo> DataPassIn, int order, AirportRunwayInfo NeedInsData) {
        DataPassIn.set(order, NeedInsData);
    }
}
